package com.ddl.dao;

import com.ddl.pojo.PayFlow;
import com.ddl.pojo.PayFlowWithBLOBs;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface PayFlowMapper {
    int deleteByPrimaryKey(Integer id);

    int insert( PayFlowWithBLOBs record);

    int insertSelective( PayFlowWithBLOBs record);

     PayFlowWithBLOBs selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective( PayFlowWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs( PayFlowWithBLOBs record);

    int updateByPrimaryKey( PayFlow record);

    List< PayFlowWithBLOBs> selectByRecord( PayFlow record);

    /**
     * 根据第三方流水查询记录
     * @param thirdPartyNo
     * @return
     */
     PayFlowWithBLOBs selectByThirdPartyNo(String thirdPartyNo);

    int updateByThirdPartyNo( PayFlow record);

    int updateByOrderId( PayFlow record);
}